<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"
	import="models.Recommend,controllers.RecommendConnect,com.googlecode.objectify.Objectify,com.googlecode.objectify.ObjectifyService,com.googlecode.objectify.Query,java.util.*,java.lang.*, utils.UsersInfo"%>

<link rel="stylesheet" type="text/css" href="/css/blog.css">
<input type="hidden" name="dbName" value="">

<!--  
<div id='view' >
<b>Please wait...<img src="/img/ajax-loader.gif">...while your request is processed.</b>
</div>
-->

<Table Border="1" class="report"  align=center width="300px">

	
<tr bgcolor="gray">
<th    width="20%"><b>Recommended by</b></th>
<th   width="20%" align="center"><b>Date Recommended</b> </th>
<th   width="60%" align="center"><b>Comments</b> </th>

</tr>
<%
	String solID = request.getParameter("sol_id");
	String recommendBy = "";
	Date recommendON;
	String comment = "";
	RecommendConnect iNOM = new RecommendConnect();
	List<HashMap<String,Object>> rs = null;
	rs = iNOM.getQuery("solID", Long.parseLong(solID));
	int i = 0;
	while ( i < rs.size() ) {
		recommendBy = UsersInfo.getFullName( (String) rs.get(i).get("recommendBy") );
		recommendON = (Date) rs.get(i).get("recommendON");
		comment = (String) rs.get(i).get("comment");		
%>
<tr>
<td width='20%'><%=recommendBy%></td>
<td width='20%'><%=recommendON%></td>
<td width='60%'><%=comment%></td>
</tr>
<% 
		i++;
	}
%>
</table>